#include "chap12.h"
#include <pthread.h>

int main() {
	pthread_t t0;
	pthread_t t1;
	if (pthread_create(&t0, NULL, does_not, NULL) == -1) {
		error("Can't create thread t0");
	}
	if (pthread_create(&t1, NULL, does_too, NULL) == -1) {
		error("Can't create thread t1");
	}

	void* result;
	if (pthread_join(t0, &result) == -1) {
		error("Can't join thread t0");
	}
	if (pthread_join(t1, &result) == -1) {
		error("Can't join thread t1");
	}

	return 0;
}

